package com.huqingshan.LenMore.model.dto;

import com.huqingshan.LenMore.model.entity.Member;
import com.huqingshan.LenMore.model.entity.Product;
import com.huqingshan.LenMore.model.entity.Traveller;
import com.huqingshan.LenMore.model.enums.ORDERSTATUS;
import com.huqingshan.LenMore.model.enums.PAYTYPE;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Date;
import java.util.List;

@Data
public class OrdersDTO {

    private String id;

    private String orderNum;

    private Date orderTime;

    private String orderTimeStr;

    private Integer peopleCount;

    private String orderDesc;

    private PAYTYPE payType;

    private String payTypeStr;

    private ORDERSTATUS orderStatus;

    private String orderStatusStr;

    private String productId;

    private String memberId;

    @NotBlank(message = "订单产品不能为空")
    private Product product;

    private Member member;

    private List<Traveller> travellers;

}
